Creating
and Deleting a File
To create a
file, set the dwOpenFlags parameter of the mmioOpen
HMMIO hFile;
hFile = mmioOpen("NEWFILE.TXT", NULL,
MMIO_CREATE | MMIO_READWRITE);
if (hFile != NULL)
// File
created successfully.
else
// File
cannot be created.
If the file
you are creating already exists, it will be truncated to zero length.
To delete a
file, set the dwOpenFlags parameter of the mmioOpen